<?php

	class cmd_article extends mdl_article
	{
		function getArtIdByGoodsId($goods_id)
		{
			$sqlString = "SELECT `article_id` FROM sdb_article_goods WHERE goods_id = ".intval($goods_id);
			return $this->db->selectrow($sqlString);
		}

		function getBindGoods($pmtId)
		{
			$aTmp = $this->db->select('select * from sdb_article_goods where pmt_id='.intval($pmtId));
			return array_item($aTmp, 'goods_id');
		}
	}

?>